﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.UI.WebControls;
namespace Texfina.Core.Web
{
    public class WebHelper
    {
        public static void LoadListControl(DropDownList dp, object obj, string columnText, string columnValue)
        {

            dp.DataSource = obj;

            dp.DataTextField = columnText;

            dp.DataValueField = columnValue;

            dp.DataBind();

        }


    }
}
